﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nido.Common.BackEnd;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace DemoTest.Bll.Models
{
    public class CourseView : BaseObject
    {
        [Key]
        [ScaffoldColumn(false)]
        public string CourseName { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public string StudentName { get; set; }
        public DateTime RegisteredDate { get; set; }
        public int Age { get; set; }
        public string AddressName { get; set; }
        public bool IsActive { get; set; }
        [NotMapped]
        public override bool CanDelete
        {
            get
            {
                return true;
            }
            set
            {
                throw new NotImplementedException();
            }
        }
    }
}
